package com.android.dialer.extendboard;

public interface ServiceConstant {
    int MSG_TYPE_USB_CONNECT = 1;
    int MSG_TYPE_USB_DISCONNECT = 2;
    int MSG_TYPE_USB_SEND_DATA = 3;
    int MSG_TYPE_USB_SEND_CONFIG = 4;
    int MSG_TYPE_USB_GET_MESSAGE = 5;
    int MSG_TYPE_USB_LOG_STRING = 6;
    int MSG_TYPE_USB_RE_CONNECT = 7;
    int MSG_TYPE_USB_PERMISSION_DENIED = 8;
    int MSG_TYPE_USB_GET_HOOK_STATE = 9;

    int MSG_TYPE_SWITCH_MIC = 10;

    int MSG_TYPE_TEST_LED = 9;
    
    
    String DATA_STORE_NAME = "com.android.dialer.extendboard.phones";
    String DATA_STORE_KEY_PREFIX = "item_";
    String ACTION_PHONE_DATA_CHANGED = "com.android.dialer.extendboard.PHONE_DATA_CHANGED";

    String ACTION_CALL_STATE_CHANGED = "com.android.dialer.extendboard.ACTION_CALL_STATE_CHANGED";
    String ACTION_HOOK_EVENT = "com.android.dialer.extendboard.ACTION_HOOK_EVENT";

    String EXTRA_PHONE_DATA = "phone_data";

    // Define key values without using enum
    // Board 1
    // Port 0
    int SM_P00_KEY_2 = 0;
    int SM_P01_KEY_1 = 1;
    int SM_P02_KEY_4 = 2;
    int SM_P03_KEY_5 = 3;
    int SM_P04_KEY_7 = 4;
    int SM_P05_KEY_8 = 5;
    int SM_P06_KEY_STAR = 6;
    int SM_P07_KEY_0 = 7;
    // Port 1
    int SM_P00_KEY_F4 = 8;
    int SM_P11_KEY_HANDSFREE = 9;
    int SM_P12_KEY_DIAL = 10;
    int SM_P13_KEY_HANGUP = 11;
    int SM_P14_KEY_POUND = 12;
    int SM_P15_KEY_9 = 13;
    int SM_P16_KEY_6 = 14;
    int SM_P17_KEY_3 = 15;

    // Board 2
    // Port 0

    int SM_P01_KEY_F3 = 16;
    int SM_P10_KEY_POWER = 17;
    int SM_P04_KEY_F2 = 18;
    int SM_P05_KEY_F1 = 19;
    int SM_P02_KEY_TRAPEZOID_MINUS = 20;
    int SM_P03_KEY_TRAPEZOID_PLUS = 21;
    int SM_P06_KEY_M5 = 22;
    int SM_P07_KEY_M4 = 23;
    // Port 1
    int SM_P10_KEY_M3 = 24;

    int SM_CALL_HOLD = SM_P05_KEY_F1;
    int SM_CALL_SWAP = SM_P04_KEY_F2;
    int SM_CALL_MERGE = SM_P01_KEY_F3;
    int SM_CALL_ADD = SM_P00_KEY_F4;

    int SM_ONBOARD_M1 = 25;
    int SM_ONBOARD_M2 = 26;
    int SM_ONBOARD_MUTE = 27;

    int SM_HOOK_KEY = 28;

    int SM_KEY_STATE_PRESSED = 1;

    int SM_KEY_STATE_RELEASED = 2;

    int SM_KEY_STATE_LONG_CLICK = 3;

    int SM_KEY_STATE_HOLD_CLICK = 4;

    int MSG_KEY_EVENT_TYPE = 0xa1;
    int MSG_HOOK_EVENT_TYPE = 0xa2;
}
